libxl: default to xenconsoled for pv guests
authorIan Campbell <Ian.Campbell@citrix.com>
Fri, 11 May 2012 14:52:52 +0000 (15:52 +0100)
committerIan Campbell <Ian.Campbell@citrix.com>
Fri, 11 May 2012 14:52:52 +0000 (15:52 +0100)
commit03285c1a358072af31d6365b31675f64248a81e6
tree3c9d672930fcb3061c366f179408626ffde4fa26
parent4535a36a93331c03ad18d8e11e5a6e51332f58da
libxl: default to xenconsoled for pv guests

Default to xenconsoled for pv guests, even if qemu is running.

Currently we prefer to use qemu for the disk backend if we are starting qemu
anyway (e.g. to service a disk).

Unfortunately qemu doesn't log the console, which xenconsoled can do via
XENCONSOLED_TRACE=guest. Since xenconsoled is also running anyway it seems like
there is no particular reason to prefer qemu just because it happens to be
running.

However we must use qemu if thereis more than one console (xenconsoled only
supports a single console).

Therefore push the logic to change the console backend down into
libxl__need_xenpv_qemu so that it can do the right thing.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_dm.c